package com.quan.pm.web.controller;

import com.quan.commons.core.MyBaseController;
import com.quan.commons.utils.PageUtils;
import com.quan.commons.vo.R;
import com.quan.pm.commons.vo.JDLVo;
import com.quan.pm.service.JDLService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@Api(tags = "稼动率")
@RestController
@RequestMapping("/project/jdl")
public class JDLController extends MyBaseController {

    @Autowired
    private JDLService service;

    /**
     * 稼动率列表
     * @param vo
     * @return
     */
    @GetMapping(value = "page")
    public Object page(JDLVo vo) {
        PageUtils page = this.service.queryPage(new PageUtils(request), vo);
        return R.ok().data(page);
    }

}
